﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Mammoth.Entities;
using Mammoth.Repositories;

namespace Mammoth.Mocks
{
    public class RepositoryMock<T> : IRepository<T> where T : Entity
    {
        public long Save(Entity entity)
        {
            return -1;
        }

        public void Delete(Entity entity)
        {
            
        }

        public IEnumerable<T> Get(System.Linq.Expressions.Expression<Func<T, bool>> expression = null, int page = 0, int pageWidth = -1)
        {
            return new List<T>();
        }

        public T Get(long id)
        {
            return null;
        }

        public long Count(string search = null)
        {
            return 0;
        }

        public void Dispose()
        {
            
        }
    }
}
